package com.jiermt.M0603;

import java.util.ArrayList;

public class Array {
    public static void main(String[] args) {
        ArrayList list = new ArrayList<>();
         list.add("hello");
          list.add("world");
           list.add("java");
       // System.out.println(list.get(0));
        /*for (int i = 0; i < list.size(); i++) {
            System.out.println( list.get(i));*/
        System.out.println( list);
        System.out.println(list.remove( 0));
        System.out.println(list);
        System.out.println(list.set(1,"www"));
        System.out.println(list);

        }
    }
